.PHONY: kernel_modules clean

KERNELDIR := /lib/modules/6.8.0-48-generic/build

CURRENT_PATH := $(shell pwd)

obj-m := CharDeviceBase.o

build : kernel_modules

kernel_modules:
	$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) modules
clean:
	$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) clean